cmake_minimum_required(VERSION 3.22)
set(CMAKE_CXX_STANDARD 17)

set(INTEROP_SAMPLES_FOLDER test/samples/uconnectacis)

if(TEST_SAMPLES_1)
    add_definitions(-DTEST_SAMPLES_1)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisConfigurationImport.cpp)
endif()

if(TEST_SAMPLES_2)
    add_definitions(-DTEST_SAMPLES_2)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisDocumentInfo.cpp)
endif()

if(TEST_SAMPLES_3)
    add_definitions(-DTEST_SAMPLES_3)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisFastBRep.cpp)
endif()

if(TEST_SAMPLES_4)
    add_definitions(-DTEST_SAMPLES_4)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisImportExport.cpp)
endif()

if(TEST_SAMPLES_5)
    add_definitions(-DTEST_SAMPLES_5)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisImportMP.cpp)
endif()

if(TEST_SAMPLES_6)
    add_definitions(-DTEST_SAMPLES_6)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisMfg.cpp)
endif()

if(TEST_SAMPLES_7)
    add_definitions(-DTEST_SAMPLES_7)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisMiscData.cpp)
endif()

if(TEST_SAMPLES_8)
    add_definitions(-DTEST_SAMPLES_8)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisPartExport.cpp)
endif()

if(TEST_SAMPLES_9)
    add_definitions(-DTEST_SAMPLES_9)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisPMI.cpp)
endif()

if(TEST_SAMPLES_10)
    add_definitions(-DTEST_SAMPLES_10)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisPolicyOptions.cpp)
endif()

if(TEST_SAMPLES_11)
    add_definitions(-DTEST_SAMPLES_11)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisPS.cpp)
endif()

if(TEST_SAMPLES_12)
    add_definitions(-DTEST_SAMPLES_12)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisRepLinking.cpp)
endif()

if(TEST_SAMPLES_13)
    add_definitions(-DTEST_SAMPLES_13)
    set(INTEROP_SAMPLES_SRC ${INTEROP_SAMPLES_FOLDER}/IopAcisVisualization.cpp)
endif()